
<!DOCTYPE html>
<html>
<head>
	<title>修改栏目</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="__ADMIN__/bootstrap/css/bootstrap.min.css" media="all">
    <link rel="stylesheet" href="__ADMIN__/adminlte/css/AdminLTE.min.css">
    <link rel="stylesheet" href="__ADMIN__/adminlte/css/font-awesome.min.css">
    <link rel="stylesheet" href="__ADMIN__/plugins/fileinput/css/fileinput.min.css">
	<style type="text/css">
	</style>
</head>
<body>
    <div class="panel-body">
      <div class="row">
        <div class="col-xs-12">
         <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
              <li class="header"><i style="cursor: pointer;" onclick="window.history.back(-1);" class="fa fa-mail-reply-all"></i>修改栏目</li>
              <li class="active"><a href="#tab_1-1" data-toggle="tab">常规选项</a></li>
              <li><a href="#tab_2-2" data-toggle="tab">高级选项</a></li>
            </ul>
             <form class="form-horizontal" method="post" action="{:url('edit')}" enctype="multipart/form-data">
            <div class="tab-content">
              <div class="tab-pane active" id="tab_1-1">
                    <div class="box-body">
                        <input type="text" hidden="hidden" name="id" value="{$columnResult.id}">
                        <div class="form-group">
                            <label  class="col-sm-1 control-label">所属栏目</label>
                            <div class="col-sm-2">
                                <select  name="parent_id" class="form-control">
                                    {if condition="$columnResult.parent_id == 0"}
                                    <option value="0">顶级栏目</option>
                                    {else /}
                                    {volist name="resultAllColumn" id="vo"}
                                    <option value="{$vo.id}" {if condition="$columnResult.parent_id == $vo.id "}  selected="selected" {/if} >{if condition="$vo['level'] neq 0"} |{/if}<?php echo str_repeat('—',$vo['level']) ?>{$vo.column_name}</option>
                                    {/volist}
                                    {/if}

                                </select>
                            </div>
                        </div>
                          <div class="form-group">
                            <label  class="col-sm-1 control-label">栏目名称</label>
                            <div class="col-sm-2">
                              <input type="text" name="column_name" value="{$columnResult.column_name}"  class="form-control"  placeholder="栏目名称">
                            </div>
                          </div>
                          <div class="form-group">
                            <label  class="col-sm-1 control-label">内容模型</label>
                            <div class="col-sm-2">
                              <select name="template_type"  class="form-control">
                                <option {if condition="$columnResult.template_type == 0 "}  selected="selected" {/if} value="0">单页模型</option>
                                <option {if condition="$columnResult.template_type == 1 "}  selected="selected" {/if} value="1">文章模型</option>
                                <option {if condition="$columnResult.template_type == 2 "}  selected="selected" {/if} value="2">产品模型</option>
                                <option {if condition="$columnResult.template_type == 3 "}  selected="selected" {/if} value="3">留言模型</option>
                              </select>
                            </div>
                          </div>
                      <div class="form-group">
                        <label  class="col-sm-1 control-label">隐藏栏目</label>
                        <div class="col-sm-2">
                           <select name="is_hidden" class="form-control">
                            <option {if condition="$columnResult.is_hidden == 0 "}  selected="selected" {/if} value="0">否</option>
                            <option {if condition="$columnResult.is_hidden == 1 "}  selected="selected" {/if} value="1">是</option>
                          </select>
                        </div>
                      </div>
                    </div>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_2-2">
                    <div class="box-body">
                      <div class="form-group">
                        <label  class="col-sm-1 control-label">栏目图片</label>
                        <div class="col-sm-4">
                            <input name="img_url" id="fileImg"   type="file">
                            <p class="help-block">图片格式jpg,png,gif，大小不超过1M，上传尺寸：1920px*300px</p>
                        </div>
                          <div class="col-sm-2">
                              <img height="34" src="{$columnResult.img_url}" />
                          </div>
                      </div>
                        <div class="form-group">
                            <label  class="col-sm-1 control-label">栏目手机端图片</label>
                            <div class="col-sm-4">
                                <input name="m_url" id="mfileImg"   type="file">
                                <p class="help-block">图片格式jpg,png,gif，大小不超过1M，上传尺寸：820px*650px</p>
                            </div>
                            <div class="col-sm-2">
                                <img height="34" src="{$columnResult.m_url}" />
                            </div>
                        </div>
                      <div class="form-group">
                         <label  class="col-sm-1 control-label">SEO标题</label>
                        <div class="col-sm-4">
                          <input name="seo_title" type="text" value="{$columnResult.seo_title}" class="form-control"  placeholder="SEO标题">
                        </div>
                      </div>
                      <div class="form-group">
                         <label  class="col-sm-1 control-label">SEO关键字</label>
                        <div class="col-sm-4">
                          <textarea name="seo_keywords" class="form-control"  rows="3" placeholder="SEO关键字">{$columnResult.seo_keywords}</textarea>
                        </div>
                      </div>
                      <div class="form-group">
                         <label  class="col-sm-1 control-label">SEO描述</label>
                        <div class="col-sm-4">
                          <textarea name="seo_description" class="form-control"  rows="3" placeholder="SEO描述">{$columnResult.seo_description}</textarea>
                        </div>
                      </div>
                    </div>
              </div>
                <div class="box-body">
                  <div class="form-group">
                      <label  class="col-sm-1 control-label"></label>
                      <div class="col-sm-2">
                          <button type="submit" class="btn btn-block btn-info">确认提交</button>
                      </div>
                  </div>
                </div>
            </div>
             </form>
            <!-- /.tab-content -->
          </div>
        </div>
      </div>
    </div>
    
</body>

<!-- jQuery 2.2.3 -->
<script src="__ADMIN__/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="__ADMIN__/bootstrap/js/bootstrap.min.js"></script>
<script src="__ADMIN__/plugins/fileinput/js/fileinput.min.js"></script>
<script src="__ADMIN__/plugins/fileinput/js/locales/zh.js"></script>
<script>

    $("#fileImg").fileinput({
        language: 'zh',                        
        browseLabel: '选择附件',
        showUpload: false,
        showPreview:false,
    })
    $("#mfileImg").fileinput({
        language: 'zh',
        browseLabel: '选择附件',
        showUpload: false,
        showPreview:false,
    })

</script>
</html>